/**
 * @author fangyu
 * @date 2020/12/7 9:09 下午
 * @version 1.0
 */
export const spuTableOption = {
  align: 'center',
  border: true,
  expand: true,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  expandRowKeys: [1],
  rowKey: 'id',
  column: [
    {
      label: '商品ID',
      prop: 'id'
    }, {
      label: '商品名称',
      prop: 'spuName',
      width: 180,
    }, {
      label: '缩略图',
      prop: 'img',
      width: 200,
      slot: true,
    }, {
      label: '分类',
      prop: 'catalogId'
    }, {
      label: '品牌',
      prop: 'brandId'
    }, {
      label: '重量',
      prop: 'weight'
    }, {
      label: '上架状态',
      prop: 'publishStatus',
      type: 'switch',
      value: 1,
      dicData: [{value: 0}, {value: 1}],
      slot: true
    }, {
      label: '创建时间',
      prop: 'createTime',
      width: 140,
    }, {
      label: '修改时间',
      prop: 'updateTime',
      width: 140,
    }
  ]
}

export const skuTableOption = {
  align: 'center',
  border: true,
  rowKey: 'skuId',
  column: [
    {
      label: 'ID',
      prop: 'skuId'
    }, {
      label: 'sku名称',
      prop: 'skuName',
      width: 160,
    }, {
      label: 'sku介绍描述',
      prop: 'skuDesc',
      width: 100
    }, {
      label: '分类',
      prop: 'catalogId'
    }, {
      label: '品牌',
      prop: 'brandId'
    }, {
      label: '默认图片',
      prop: 'skuDefaultImg',
      width: 150,
      slot: true,
    }, {
      label: '标题',
      prop: 'skuTitle',
      width: 220,
    }, {
      label: '副标题',
      prop: 'skuSubtitle',
      width: 220,
    }, {
      label: '价格',
      prop: 'price',
    }, {
      label: '销量',
      prop: 'saleCount'
    }
  ]
}
